package com.bw.demo_mvvm.ui

import androidx.lifecycle.LiveData
import com.bw.demo_mvvm.net.BaseResponse
import com.bw.demo_mvvm.net.RetrofitManager
import retrofit2.http.Query

/**
 * @Author : ZhouZiYao
 * @Time : On 2023/11/16 19:31
 * @Description :
 */
class MvvmRepository {

    private val api: Api by lazy {
        RetrofitManager.instance.createService(Api::class.java)
    }

    fun video(currentPage:Int, pageSize:Int): LiveData<BaseResponse<MutableList<VideoEntity>>>{
        return api.video(currentPage, pageSize)
    }

}